package com.android.appnextwo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;


public class Tela2 extends Activity {
	public void onCreate(Bundle icicle){
		super.onCreate(icicle);
				
		Intent it = getIntent();
		TextView view = new TextView(this);
		if(it!=null){
			String msg = it.getStringExtra("msg");
			if(msg!=null){
				view.setText(msg);
				setContentView(view);
			}
		}
		
	}
}
